<template>
  <div id="index" ref="appRef">
    <div class="bg">
      <dv-loading v-show="loading">Loading...</dv-loading>
      <div class="host-body">
        <dvborder />
        <el-row>
          <el-col :span="5" class="box_H">
            <tableone />
          </el-col>
          <el-col :span="14" class="box_H">
            <chinaMap />
          </el-col>
          <el-col :span="5" class="box_H">
            <tabletwo />
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24" class="bottom_box1">
            <bottomBox />
          </el-col>
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
import drawMixin from '../../utils/drawMixin' // 自适应缩放
import dvborder from './components/dvborder' // 头部组件
import tableone from './components/tableone.vue' // 第一列组件
import tabletwo from './components/tabletwo.vue' // 第二列组件
import chinaMap from './components/chinaMap.vue' // 地图组件
import bottomBox from './components/bottomBox.vue'
export default {
  name: 'Dashboard',
  components: {
    dvborder,
    tableone,
    tabletwo,
    chinaMap,
    bottomBox
  },
  mixins: [drawMixin],
  data() {
    return {
      loading: false
    }
  },
  mounted() {
    this.cancelLoading()
  },
  methods: {
    // 加载图
    cancelLoading() {
      setTimeout(() => {
        this.loading = false
      }, 500)
    }
  }
}
</script>

<style lang="scss" scoped>
//全局样式部分！！！！
* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  outline: none;
  box-sizing: border-box;
}
html {
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2em;
  background-color: #f1f1f1;
  margin: 0;
  padding: 0;
}
a {
  color: #343440;
  text-decoration: none;
}
//--------------------------------------------

//页面样式部分！！！！
#index {
  // color: #d3d6dd;
  width: 1920px;
  height: 1080px;
  position: absolute;
  top: 50%;
  left: 50%;
  // transform: translate(-50%, -50%);
  transform-origin: left top;
  box-sizing: border-box;
  overflow: hidden;
  .bg {
    //整体页面背景
    width: 100%;
    height: 100%;
    padding: 16px 16px 0 16px;
    background-image: url("../../assets/pageBg.png"); //背景图
    background-size: cover; //背景尺寸
    background-position: center center; //背景位置
  }
  .host-body {
    margin-top: 50px;
    height: 98%;
    // margin-bottom:50px ;
  }
  .box_H {
    height: 690px;
    z-index: 100;
  }
}
.banner {
  text-align: center;
}
.bottom_box1 {
  height: 250px;
  // width: 95%;
  padding-top: 30px;
}
</style>
